enyo.kind({
   name: "PsnTrophies.Sandbox",
   kind: "Control",
   classes: "onyx enyo-unselectable enyo-fit",
   components: [
      {name: "myRepeater", kind: "Repeater", rows: 2, onSetupRow: "setupEntries", components: [
          {kind: "Item"}
      ]},
   ],
	create: function() {
	  this.inherited(arguments);
	  this.$.myRepeater.build();
	  this.log("End Constructor");
	},
	setupEntries: function(inSender, inEvent) {
      this.log("Setting up row...");
      this.log("inSender=" + inSender);
      this.log("inEvent=" + inEvent);
      var index = inEvent.index;
      this.log("index=" + index);
      var rowControl = inEvent.row;
      this.log("rowControl=" + rowControl.$.item);
      rowControl.$.item.$.button.setContent("entry: " + inEvent.index);
   }
});

enyo.kind({
   name: "Item",
   events: {
       onShowEntries: ""
   },
   components: [
          {kind: "Button", ontap: "showEntries"}
   ],
   showEntries: function() {
       this.doShowEntries();
   }
});